# 定义一个变量a赋值1
a = 1
b = "123"
c = a
print(a)
print(b)
print(str(c + a) + b)

message = " hello world  message !"
message_1 = ' hello world message_1 '
print(message)
print(message_1)

name = "ada lovelace "
print(name.title())  # 以首字母大写的方式显示每个单词
first_name = "周"
last_name = "杰伦"
full_name = first_name + last_name  # 字符串拼接
print(full_name)
print("\t 制表符的打印")
print("\n 换行的打印")
stringname = "    你猜猜我是谁    "
print(stringname.rstrip() + "---删除结尾的空格")
print(stringname.lstrip() + "---删除开头的空格")
print(stringname.strip() + "---开头结尾空格我都删了")
# 整数
print(2 + 3)
print(2 == 2)
print(2 * 3)
print(2 - 3)
print(2 / 3)
# 浮点数
print(0.2 + 0.3)
print(0.2 == 0.2)
print(0.2 * 0.3)
print(0.2 - 0.3)
print(0.2 / 0.3)
print("使用Str()函数转化数字为字符串" + str(2.38797))
